package com.example.ymm.modules1.service.impl.hl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
import com.example.ymm.base.BaseServiceImpl;
import com.example.ymm.modules1.entity.hl.dkn.DknClosePlan;
import com.example.ymm.modules1.mapper.hl.DknClosePlanMapper;
import com.example.ymm.modules1.service.hl.DknClosePlanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@DSTransactional
@Slf4j
@DS("slave2")
public class DknClosePlanServiceImpl extends BaseServiceImpl<DknClosePlanMapper, DknClosePlan> implements DknClosePlanService {


    @Override
    public void saveDknClosePlan(String biaoShiNo) {
        DknClosePlan dknClosePlan = new DknClosePlan();
        dknClosePlan.setBiaoShiNo(biaoShiNo);
        dknClosePlan.setUserId(getUserId());
        dknClosePlan.setUserName(getUserName());
        saveOrUpdate(dknClosePlan);
    }
}
